<?php
/**
 * Created by PhpStorm.
 * User: THUNDEROBOT
 * Date: 2021/1/12
 * Time: 21:01
 */

namespace app\admin\controller;


use app\admin\model\Course;
use think\Controller;

class Courses extends  Controller
{
    public function index(){
        $courseModel = new Course();
        $courseList = $courseModel->course();
//         dump($teacherList->toArray());
        $emptyHtml = '<tr><td align="center" colspan="5">暂无任何数据</td></tr>';
        $this->assign("emptyHtml",$emptyHtml);
        $this->assign("courseList",$courseList);
        return $this->fetch();
    }

}